package com.jjx.trainingapi.entity.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 0:32
 * @description believe in yourself
 */
@NoArgsConstructor
@Data
public class TestDto {

    @JsonProperty("errno")
    private Integer errno;
    @JsonProperty("message")
    private String message;
    @JsonProperty("data")
    private DataDTO data;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("list")
        private List<ListDTO> list;
        @JsonProperty("total_qnum")
        private Integer totalQnum;
        @JsonProperty("last_id")
        private Integer lastId;

        @NoArgsConstructor
        @Data
        public static class ListDTO {
            @JsonProperty("id")
            private String id;
            @JsonProperty("type")
            private String type;
            @JsonProperty("question")
            private String question;
            @JsonProperty("qimage")
            private String qimage;
            @JsonProperty("qvideo")
            private String qvideo;
            @JsonProperty("qaudio")
            private String qaudio;
            @JsonProperty("a_type")
            private String aType;
            @JsonProperty("option")
            private List<OptionDTO> option;
            @JsonProperty("rightkey")
            private String rightkey;
            @JsonProperty("analysis")
            private String analysis;
            @JsonProperty("aimage")
            private String aimage;
            @JsonProperty("analysis_audio")
            private String analysisAudio;
            @JsonProperty("wrong_have")
            private Integer wrongHave;

            @NoArgsConstructor
            @Data
            public static class OptionDTO {
                @JsonProperty("o")
                private String o;
                @JsonProperty("p")
                private String p;
            }
        }
    }
}
